﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="order_edit.aspx.cs" Inherits="Order_edit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <style type="text/css">
       
    </style>
</head>
<body>
    <form id="form1" runat="server">
      <div>
        <div style=" margin:0 auto; width:700px; height:480px; border:0">
          <div style="width:700px; height:31px; border:0">
            <img src="image/book-top.jpg" alt="" width="700px" height="31px" />
          </div>
          <div>
            <div style="width:158px; height:443px; border:0; float:left">
              <img src="image/book-left.jpg" alt="" />
            </div>
            <div style="width:542px; height:443px; border:0; float:right">
              <div style="width:509px; height:374px; border:0; float:left">
              
                  <div style=" margin:0 auto; width:509px; height:30px; text-align:center; font-size:x-large; background-color: #33CCFF;" >
                  订单信息
                  </div> 
                  <div style="text-align:center; height: 344px;">
                    <asp:GridView ID="orderList" runat="server" AutoGenerateColumns="False" 
                          AllowPaging="True" Width="509px" onrowcommand="orderList_RowCommand" >
                      <Columns>
                        <asp:BoundField DataField="Ord_Idint" HeaderText="订单号"></asp:BoundField>
                        <asp:BoundField DataField="User_Idint" HeaderText="下单人编号" Visible="false"></asp:BoundField>
                        <asp:BoundField DataField="Ord_ContactManstr" HeaderText="联系人" Visible="false"></asp:BoundField>
                        <asp:BoundField DataField="Ord_Datedate" HeaderText="订单日期"></asp:BoundField>
                        <asp:BoundField DataField="orderStates" HeaderText="订单状态"></asp:BoundField>
                      
                        <asp:HyperLinkField DataNavigateUrlFields="Ord_Idint" DataNavigateUrlFormatString="order_infor.aspx?Ord_Idint={0}" HeaderText="查看" Text="查看" Target="mainFrame" />
                        
                        <asp:TemplateField HeaderText="删除">
                          <ItemTemplate>
                            <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="deleteOrder"                        
                            CommandArgument='<%#DataBinder.Eval(Container.DataItem,"Ord_Idint")%>'   Text="删除" OnClientClick='<%#  "if (!confirm(\"你确定要删除吗?\")) return false;"%>'></asp:LinkButton>  
                          </ItemTemplate>
                        </asp:TemplateField>       
                      </Columns>
                    <PagerSettings Visible="False" />
                    </asp:GridView>
                            <asp:LinkButton ID="btnFirst" CommandArgument="first" OnClick="PagerButtonClick" runat="server">首 页</asp:LinkButton>
                            <asp:LinkButton ID="btnPrev" CommandArgument="prev" OnClick="PagerButtonClick" runat="server">上一页</asp:LinkButton>
                            <asp:LinkButton ID="btnNext" CommandArgument="next" OnClick="PagerButtonClick" runat="server">下一页</asp:LinkButton>
                            <asp:LinkButton ID="btnLast" CommandArgument="last" OnClick="PagerButtonClick" runat="server">尾 页</asp:LinkButton>
                            <asp:Label ID="LblCurrentIndex" runat="server"></asp:Label>
                            <asp:Label ID="LblPageCount" runat="server"></asp:Label>
                            <asp:Label ID="LblRecordCount" runat="server"></asp:Label>
                              
                  </div>
                  
              </div>
              <div style="width:33px; height:374px; float:right; border:0">
                <img src="image/book-right.jpg" width="33px" height="374" alt="" />
              </div>
              <div style="width:542px; height:67px; border:0">
                <img src="image/book-bottom.jpg" alt="" width="542" height="67" />
              </div>
            </div>
          </div> 
        </div>
      </div>
    </form>
</body>
</html>
